projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dfbacc
)
win32: Move init code into windows-specific code
author
Benjamin Otte
<otte@redhat.com>
Thu, 11 Feb 2016 03:14:28 +0000
(
04:14
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 11 Feb 2016 03:14:28 +0000
(
04:14
+0100)
Avoids warnings about undefined functions on non-windows.
gtk/gtkwin32theme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwin32theme.c
b/gtk/gtkwin32theme.c
index a430f9989984e0f893ffe91be5e199521e350ace..167abf375a01866995d14b4aa35926c0e611f60b 100644
(file)
--- a/
gtk/gtkwin32theme.c
+++ b/
gtk/gtkwin32theme.c
@@
-157,7
+157,7
@@
invalidate_win32_themes (GdkXEvent *xevent,
}
static void
-
_
gtk_win32_theme_init (void)
+gtk_win32_theme_init (void)
{
char *buf;
char dummy;
@@
-224,6
+224,8
@@
gtk_win32_theme_get_htheme (GtkWin32Theme *theme)
guint16 *wclass;
char *lower;
+ gtk_win32_theme_init ();
+
if (theme->htheme)
return theme->htheme;
@@
-244,8
+246,6
@@
gtk_win32_theme_lookup (const char *classname)
{
GtkWin32Theme *theme;
- _gtk_win32_theme_init ();
-
theme = g_hash_table_lookup (themes_by_class, classname);
if (theme != NULL)